package com.wct.permission.mapper;

import com.wct.permission.domain.SysPermission;
import com.wct.permission.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUsername(@Param("username") String username);

    List<SysPermission> findPermissionByUsername(@Param("username") String username);

    void updatePassword(SysUser sysUser);

}